/**
 * 
 */
package com.ntv.persistent.astrology;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.ntv.domain.IZodiacZone;
import com.ntv.domain.ZodiacZone;

/**
 * @author Vedamoorthi Vairam
 * @since 12/02/2009
 *
 */
public class AstrologyMapper 
	implements RowMapper 
	{
		public Object mapRow(ResultSet rs, int rowNum) throws SQLException 
		{
			IZodiacZone zodiacZone = new ZodiacZone();
			zodiacZone.setId(rs.getLong("id"));
			zodiacZone.setZodiacZoneId(rs.getLong("zodiac_zone_id"));
			zodiacZone.setDescription(rs.getString("description"));
			zodiacZone.setCreatedBy(rs.getLong("created_by"));
			zodiacZone.setCreatedOn(rs.getDate("created_on"));;
			zodiacZone.setUpdatedBy(rs.getLong("updated_by"));
			zodiacZone.setUpdatedOn(rs.getDate("updated_on"));
			return zodiacZone;
		}

	}

